{template 'common/header'}
<div class="main">
<ul class="nav nav-tabs">
  <li{if $_GPC['do'] == 'manager'} class="active"{/if}><a href="{php echo $this->createWeburl('buildlists');}">楼盘管理</a>
  </li>
  <li{if $_GPC['do'] == 'add'} class="active"{/if}><a href="{php echo $this->createWeburl('add');}">添加楼盘</a>
</ul>
<form action="" method="post" class="form-horizontal" role="form">

<div class="panel panel-info">
<div class="panel-heading">楼盘简介</div>
<div class="panel-body">
<input type="hidden" name="id" value="{$item['id']}">
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">图文消息标题</label>
  <div class="col-sm-9">
    <input type="text" id="title" name="title" value="{$item['title']}"  class="form-control" />
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">图文消息封面</label>
  <div class="col-sm-9"> {php echo tpl_form_field_image('pic', $item['pic'], $this->geturl(1));} <span class="help-block">*封面默认大小720*400</span> </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">楼盘头部图片</label>
  <div class="col-sm-9"> {php echo tpl_form_field_image('headpic', $item['headpic'], $this->geturl(2));} <span class="help-block">*建议尺寸：宽720像素，高350像素</span> </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">户型头部图片</label>
  <div class="col-sm-9"> {php echo tpl_form_field_image('apartpic', $item['apartpic'], $this->geturl(3));} <span class="help-block">*建议尺寸：宽720像素，高350像素</span> </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">楼盘视频引用URL</label>
  <div class="col-sm-9">
    <input type="text" id="video" name="video" value="{$item['video']}"  class="form-control" />
    <span class="help-block">请指定视频真实URL地址,如http://aa.com/videw/marry.mp4</span>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">楼盘简介</label>
  <div class="col-sm-9">
    <textarea style="height:100px;" class="span7 richtext-clone" name="jianjie" cols="70" id="jianjie">{$item['jianjie']}</textarea> 
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">项目简介</label>
  <div class="col-sm-9">
    <textarea style="height:100px;" class="span7 richtext-clone" name="xiangmu" cols="70" id="xiangmu">{$item['xiangmu']}</textarea>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">交通配套</label>
  <div class="col-sm-9">
    <textarea style="height:100px;" class="span7 richtext-clone" name="jiaotong" cols="70" id="jiaotong">{$item['jiaotong']}</textarea>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">联系电话</label>
  <div class="col-sm-9">
    <input type="text" id="tel" name="tel" value="{$item['tel']}"  class="form-control" />
    <span class="help-block">*该电话用于楼盘首页联系方式导航按钮</span>
  </div>
</div>
<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">楼盘地址</label>
					<div class="col-xs-12 col-sm-9">
						<div class="input-append"><input type="text" name="hy_addr" value="{$item['hy_addr']}"  class="form-control" /></div>
					</div>
</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">地区</label>
					<div class="col-xs-12 col-sm-9">
						{php echo tpl_form_field_district('district',array('province'=>$item['province'],'city'=>$item['city'],'dist'=>$item['dist']))}
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">坐标</label>
					<div class="col-xs-12 col-sm-9" style="padding-left:0;">
						{php echo tpl_form_field_coordinate('baidumap', $item)}
					</div>
				</div>
                </div>
                </div>
                
 	<div class="panel panel-info">
		<div class="panel-heading">首页底部导航名称设置</div>
		<div class="panel-body">
               <div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">简介导航显示名称</label>
  <div class="col-sm-9">
    <input type="text" id="jjname" name="jjname" value="{$item['jjname']}"  class="form-control" />
    <span class="help-block">* 必填</span>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">相册导航显示名称</label>
  <div class="col-sm-9">
    <input type="text" id="xcname" name="xcname" value="{$item['xcname']}"  class="form-control" />
    <span class="help-block">* 必填</span>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">户型导航显示名称</label>
  <div class="col-sm-9">
    <input type="text" id="hxname" name="hxname" value="{$item['hxname']}"  class="form-control" />
    <span class="help-block">* 必填</span>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">印象导航显示名称</label>
  <div class="col-sm-9">
    <input type="text" id="yxname" name="yxname" value="{$item['yxname']}"  class="form-control" />
    <span class="help-block">* 必填</span>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">新闻导航显示名称</label>
  <div class="col-sm-9">
    <input type="text" id="xwname" name="xwname" value="{$item['xwname']}"  class="form-control" />
    <input type="text" name="xwurl" value="{$item['xwurl']}" class="form-control"  placeholder="填写新闻链接,站外链接需包含http://"/>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">预约导航显示名称</label>
  <div class="col-sm-9">
    <input type="text" id="yyname" name="yyname" value="{$item['yyname']}"  class="form-control" />
    <input type="text" name="yyurl" value="{$item['yyurl']}" class="form-control"  placeholder="填写预约链接,站外链接需包含http://"/>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">会员导航显示名称</label>
  <div class="col-sm-9">
    <input type="text" id="hyname" name="hyname" value="{$item['hyname']}"  class="form-control" />
    <input type="text" name="hyurl" value="{$item['hyurl']}" class="form-control"  placeholder="为空使用默认链接，设置后将跳转到指定链接（注：外部链接需加http://）"/>
  </div>
</div>
<div class="form-group">
  <label class="col-xs-12 col-sm-3 col-md-2 control-label">联系导航显示名称</label>
  <div class="col-sm-9">
    <input type="text" id="lxname" name="lxname" value="{$item['lxname']}"  class="form-control" />
    <span class="help-block">* 必填</span>
  </div>
</div>
	<div class="form-group col-sm-12">
			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
			<input type="hidden" name="token" value="{$_W['token']}" />
		</div>
        
        </div>
        </div>
        </form>
            <script type="text/javascript">
require(['util'],function(util){
    util.editor($('#jianjie')[0]);
	util.editor($('#xiangmu')[0]);
	util.editor($('#jiaotong')[0]);
	

})
</script>
{template 'common/footer'}